﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WitsWebApi.Entity.Entities;
using WitsWebApi.Entity.EntityParam;
using WitsWebApi.Entity.PageHelper;

namespace WitsWebApi.Application.Services
{
    public interface IAdminDetailService
    {
        /// <summary>
        /// 根据用户名获取指定用户
        /// </summary>
        /// <param name="AdminName"></param>
        /// <returns></returns>
        Task<Admin> GetAdminDetailByName(string AdminName);

        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="adminParam"></param>
        /// <returns></returns>
        Task<bool> AddAdminDetail(AdminParam adminParam);

        /// <summary>
        /// 通过ID 删除指定用户
        /// </summary>
        /// <param name="AdminID"></param>
        /// <returns></returns>
        Task<bool> DelAdminByAdminID(int[] AdminIDs);

        /// <summary>
        /// 修改指定用户信息
        /// </summary>
        /// <param name="adminParam"></param>
        /// <returns></returns>
        Task<bool> UpdateAdminDetail(Admin adminParam);

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="adminPageResult"></param>
        /// <returns></returns>
        Task<Paged<AdminPage>> AdminPageData(AdminPageResult adminPageResult);
    }
}
